
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Prevention;

import java.util.Calendar;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Prevention entities.
 * 
 */
public interface PreventionDAO extends JpaDao<Prevention> {

	/**
	 * JPQL Query - findPreventionById
	 *
	 */
	public Prevention findPreventionById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionById
	 *
	 */
	public Prevention findPreventionById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionByMemo
	 *
	 */
	public Set<Prevention> findPreventionByMemo(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionByMemo
	 *
	 */
	public Set<Prevention> findPreventionByMemo(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionByTime
	 *
	 */
	public Set<Prevention> findPreventionByTime(java.util.Calendar time) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionByTime
	 *
	 */
	public Set<Prevention> findPreventionByTime(Calendar time, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllPreventions
	 *
	 */
	public Set<Prevention> findAllPreventions() throws DataAccessException;

	/**
	 * JPQL Query - findAllPreventions
	 *
	 */
	public Set<Prevention> findAllPreventions(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionByPrimaryKey
	 *
	 */
	public Prevention findPreventionByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionByPrimaryKey
	 *
	 */
	public Prevention findPreventionByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionByMemoContaining
	 *
	 */
	public Set<Prevention> findPreventionByMemoContaining(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findPreventionByMemoContaining
	 *
	 */
	public Set<Prevention> findPreventionByMemoContaining(String memo_1, int startResult, int maxRows) throws DataAccessException;

}